/**
 * <copyright>
 * </copyright>
 *
 * $Id$
 */
package org.hl7.v3;

import java.util.Arrays;
import java.util.Collections;
import java.util.List;

import org.eclipse.emf.common.util.Enumerator;

/**
 * <!-- begin-user-doc -->
 * A representation of the literals of the enumeration '<em><b>Act Information Category Code</b></em>',
 * and utility methods for working with them.
 * <!-- end-user-doc -->
 * <!-- begin-model-doc -->
 * abstDomain: A19752 (C-0-T13953-A19752-cpt)
 * <!-- end-model-doc -->
 * @see org.hl7.v3.V3Package#getActInformationCategoryCode()
 * @model extendedMetaData="name='ActInformationCategoryCode'"
 * @generated
 */
public enum ActInformationCategoryCode implements Enumerator {
	/**
	 * The '<em><b>ALLGCAT</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #ALLGCAT_VALUE
	 * @generated
	 * @ordered
	 */
	ALLGCAT(0, "ALLGCAT", "ALLGCAT"),

	/**
	 * The '<em><b>COBSCAT</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #COBSCAT_VALUE
	 * @generated
	 * @ordered
	 */
	COBSCAT(1, "COBSCAT", "COBSCAT"),

	/**
	 * The '<em><b>DEMOCAT</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #DEMOCAT_VALUE
	 * @generated
	 * @ordered
	 */
	DEMOCAT(2, "DEMOCAT", "DEMOCAT"),

	/**
	 * The '<em><b>DICAT</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #DICAT_VALUE
	 * @generated
	 * @ordered
	 */
	DICAT(3, "DICAT", "DICAT"),

	/**
	 * The '<em><b>IMMUCAT</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #IMMUCAT_VALUE
	 * @generated
	 * @ordered
	 */
	IMMUCAT(4, "IMMUCAT", "IMMUCAT"),

	/**
	 * The '<em><b>LABCAT</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #LABCAT_VALUE
	 * @generated
	 * @ordered
	 */
	LABCAT(5, "LABCAT", "LABCAT"),

	/**
	 * The '<em><b>MEDCCAT</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #MEDCCAT_VALUE
	 * @generated
	 * @ordered
	 */
	MEDCCAT(6, "MEDCCAT", "MEDCCAT"),

	/**
	 * The '<em><b>RXCAT</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #RXCAT_VALUE
	 * @generated
	 * @ordered
	 */
	RXCAT(7, "RXCAT", "RXCAT"),

	/**
	 * The '<em><b>PSVCCAT</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #PSVCCAT_VALUE
	 * @generated
	 * @ordered
	 */
	PSVCCAT(8, "PSVCCAT", "PSVCCAT");

	/**
	 * The '<em><b>ALLGCAT</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>ALLGCAT</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #ALLGCAT
	 * @model
	 * @generated
	 * @ordered
	 */
	public static final int ALLGCAT_VALUE = 0;

	/**
	 * The '<em><b>COBSCAT</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>COBSCAT</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #COBSCAT
	 * @model
	 * @generated
	 * @ordered
	 */
	public static final int COBSCAT_VALUE = 1;

	/**
	 * The '<em><b>DEMOCAT</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>DEMOCAT</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #DEMOCAT
	 * @model
	 * @generated
	 * @ordered
	 */
	public static final int DEMOCAT_VALUE = 2;

	/**
	 * The '<em><b>DICAT</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>DICAT</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #DICAT
	 * @model
	 * @generated
	 * @ordered
	 */
	public static final int DICAT_VALUE = 3;

	/**
	 * The '<em><b>IMMUCAT</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>IMMUCAT</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #IMMUCAT
	 * @model
	 * @generated
	 * @ordered
	 */
	public static final int IMMUCAT_VALUE = 4;

	/**
	 * The '<em><b>LABCAT</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>LABCAT</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #LABCAT
	 * @model
	 * @generated
	 * @ordered
	 */
	public static final int LABCAT_VALUE = 5;

	/**
	 * The '<em><b>MEDCCAT</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>MEDCCAT</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #MEDCCAT
	 * @model
	 * @generated
	 * @ordered
	 */
	public static final int MEDCCAT_VALUE = 6;

	/**
	 * The '<em><b>RXCAT</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>RXCAT</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #RXCAT
	 * @model
	 * @generated
	 * @ordered
	 */
	public static final int RXCAT_VALUE = 7;

	/**
	 * The '<em><b>PSVCCAT</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>PSVCCAT</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #PSVCCAT
	 * @model
	 * @generated
	 * @ordered
	 */
	public static final int PSVCCAT_VALUE = 8;

	/**
	 * An array of all the '<em><b>Act Information Category Code</b></em>' enumerators.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private static final ActInformationCategoryCode[] VALUES_ARRAY =
		new ActInformationCategoryCode[] {
			ALLGCAT,
			COBSCAT,
			DEMOCAT,
			DICAT,
			IMMUCAT,
			LABCAT,
			MEDCCAT,
			RXCAT,
			PSVCCAT,
		};

	/**
	 * A public read-only list of all the '<em><b>Act Information Category Code</b></em>' enumerators.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public static final List<ActInformationCategoryCode> VALUES = Collections.unmodifiableList(Arrays.asList(VALUES_ARRAY));

	/**
	 * Returns the '<em><b>Act Information Category Code</b></em>' literal with the specified literal value.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public static ActInformationCategoryCode get(String literal) {
		for (int i = 0; i < VALUES_ARRAY.length; ++i) {
			ActInformationCategoryCode result = VALUES_ARRAY[i];
			if (result.toString().equals(literal)) {
				return result;
			}
		}
		return null;
	}

	/**
	 * Returns the '<em><b>Act Information Category Code</b></em>' literal with the specified name.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public static ActInformationCategoryCode getByName(String name) {
		for (int i = 0; i < VALUES_ARRAY.length; ++i) {
			ActInformationCategoryCode result = VALUES_ARRAY[i];
			if (result.getName().equals(name)) {
				return result;
			}
		}
		return null;
	}

	/**
	 * Returns the '<em><b>Act Information Category Code</b></em>' literal with the specified integer value.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public static ActInformationCategoryCode get(int value) {
		switch (value) {
			case ALLGCAT_VALUE: return ALLGCAT;
			case COBSCAT_VALUE: return COBSCAT;
			case DEMOCAT_VALUE: return DEMOCAT;
			case DICAT_VALUE: return DICAT;
			case IMMUCAT_VALUE: return IMMUCAT;
			case LABCAT_VALUE: return LABCAT;
			case MEDCCAT_VALUE: return MEDCCAT;
			case RXCAT_VALUE: return RXCAT;
			case PSVCCAT_VALUE: return PSVCCAT;
		}
		return null;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private final int value;

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private final String name;

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private final String literal;

	/**
	 * Only this class can construct instances.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private ActInformationCategoryCode(int value, String name, String literal) {
		this.value = value;
		this.name = name;
		this.literal = literal;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public int getValue() {
	  return value;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public String getName() {
	  return name;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public String getLiteral() {
	  return literal;
	}

	/**
	 * Returns the literal value of the enumerator, which is its string representation.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	@Override
	public String toString() {
		return literal;
	}
	
} //ActInformationCategoryCode
